//display the copyright message (it won't really show but it will be there)
od_printf("`bright`New York 2008 Jackpot IGM, FREEWARE!\n\r(c) Copyright 1995, George Lebl - All rights Reserved\n\r");
//se the ansi and avatar values
od_control.user_ansi=ans_t;
od_control.user_avatar=avt_t;
//check if another node is using the IGM
if(findfirst("JACKPOT.USD",&ff,0)!=0) {
file_handle=fopen("JACKPOT.USD","wt");
fclose(file_handle);
//if it is exit
} else {
od_printf("\n\r`bright red`T`red`he IGM is used by another node!\n\r`bright red`T`red`his IGM is not multinode capable!\n\r`bright red`C`red`ome back later!\n\r\n\r`bright red`Smack [Enter] to countinue:");
od_get_answer("\n\r");
od_exit(10,FALSE);
}
//check if the dat file is there
//if not create it and make the jackpot 100
if(findfirst("JACKPOT.DAT",&ff,0)!=0) {
jackpot=100;
file_handle=fopen("JACKPOT.DAT","wt");
fprintf(file_handle,"100");
fclose(file_handle);
//if yes read in the value
} else {
file_handle=fopen("JACKPOT.DAT","rt");
fscanf(file_handle,"%lu",&jackpot);
fclose(file_handle);
}
//this is where the main menu is drawn
main_menu:
//if the user would not have clear clearing it will push the menu a bit down
od_printf("\n\r\n\r");
//clear screen
od_clr_scr();
//display the menu
od_printf("`bright red`J`red`ackpot IGM for `bright green`NY2008`red`!\n\r\n\r");
od_printf("`bright white`The jackpot is: `flashing bright red`%lu\n\r\n\r",jackpot);